﻿namespace MiniJob.Orleans;

public interface IJobGrain : IGrainWithGuidKey
{
    Task ScheduleJobAsync();
}

public class JobGrain : GrainBase, IJobGrain
{
    public Task ScheduleJobAsync()
    {
        Logger.LogInformation("begin schedule job: {JobId}", this.GetPrimaryKey());
        return Task.CompletedTask;
    }
}
